package ui;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.event.KeyEvent;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class VendasUI extends JFrame {

	private static final long serialVersionUID = 1L;
	private JPanel jContentPane = null;
	private JLabel jLabel = null;
	private JLabel jLabel1 = null;
	private JLabel jLabel2 = null;
	private JButton jButton = null;
	private JComboBox jComboBox = null;
	private JComboBox jComboBox1 = null;
	private JTextField jTextField = null;

	/**
	 * This is the default constructor
	 */
	public VendasUI() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(400, 190);
		this.setContentPane(getJContentPane());
		this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		this.setTitle("Vendas");
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jLabel2 = new JLabel();
			jLabel2.setText("Quantidade.:");
			jLabel2.setSize(new Dimension(75, 21));
			jLabel2.setLocation(new Point(10, 71));
			jLabel1 = new JLabel();
			jLabel1.setText("Produto.:");
			jLabel1.setSize(new Dimension(75, 21));
			jLabel1.setLocation(new Point(10, 41));
			jLabel = new JLabel();
			jLabel.setText("Cliente.:");
			jLabel.setSize(new Dimension(75, 21));
			jLabel.setLocation(new Point(10, 10));
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.add(jLabel, null);
			jContentPane.add(jLabel1, null);
			jContentPane.add(jLabel2, null);
			jContentPane.add(getJButton(), null);
			jContentPane.add(getJTextField(), null);
			jContentPane.add(getJComboBox(), null);
			jContentPane.add(getJComboBox1(), null);
		}
		return jContentPane;
	}

	/**
	 * This method initializes jButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton() {
		if (jButton == null) {
			jButton = new JButton();
			jButton.setLocation(new Point(125, 112));
			jButton.setText("Realizar a Venda");
			jButton.setMnemonic(KeyEvent.VK_R);
			jButton.setSize(new Dimension(150, 21));
		}
		return jButton;
	}

	/**
	 * This method initializes jComboBox	
	 * 	
	 * @return javax.swing.JComboBox	
	 */
	private JComboBox getJComboBox() {
		if (jComboBox == null) {
			jComboBox = new JComboBox();
			jComboBox.setSize(new Dimension(285, 21));
			jComboBox.setLocation(new Point(95, 10));
		}
		return jComboBox;
	}

	/**
	 * This method initializes jComboBox1	
	 * 	
	 * @return javax.swing.JComboBox	
	 */
	private JComboBox getJComboBox1() {
		if (jComboBox1 == null) {
			jComboBox1 = new JComboBox();
			jComboBox1.setSize(new Dimension(285, 21));
			jComboBox1.setLocation(new Point(95, 41));
		}
		return jComboBox1;
	}

	/**
	 * This method initializes jTextField	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField() {
		if (jTextField == null) {
			jTextField = new JTextField();
			jTextField.setSize(new Dimension(75, 21));
			jTextField.setLocation(new Point(95, 71));
		}
		return jTextField;
	}

}
